//
//  XMReadModeController.m
//  XMWeibo
//
//  Created by chi on 14-9-2.
//  Copyright (c) 2014年 xiaoming. All rights reserved.
//

#import "XMReadModeController.h"

@interface XMReadModeController ()

@end

@implementation XMReadModeController



- (void)viewDidLoad
{
    [super viewDidLoad];
    
    // 添加分组
    [self setupGroup1];
    [self setupGroup2];
}



#pragma mark - 添加分组
- (void)setupGroup1
{
    XMCheckGroupInfo *group1 = [XMCheckGroupInfo group];
    [self.dataList addObject:group1];
    
    
    XMCheckSettingItem *withPic = [XMCheckSettingItem cellItemWithTitle:@"有图模式" subTitle:nil icon:nil];
    
    
    XMCheckSettingItem *noPic = [XMCheckSettingItem cellItemWithTitle:@"无图模式" subTitle:nil icon:nil];


    group1.cellItems = @[withPic, noPic];
    
    group1.source = self.source;
}


- (void)setupGroup2
{
    XMGroupInfo *group2 = [self addGroup];
    
    XMBaseSettingItem *showScaleStatus = [XMSwitchSettingItem cellItemWithTitle:@"显示缩略微博" subTitle:nil icon:nil];
    
    group2.cellItems = @[showScaleStatus];
}



@end
